import request from '@/utils/request'
// 渲染页面
export const getSerActivityData=(params)=>{
  return request({
    url:'service/activity',
    method:'get',
    params
  })
}
// 活动管理渲染下拉框
export const getSerActivityRict=()=>{
  return request({
    url:'community',
    method:'get'
  })
}
export const getSerActivityDel=(id)=>{
  return request({
    url:`service/activity/${id}`,
    method:'DELETE'
  })
}
// 添加
export const getSerActivityPost=(data)=>{
  return request({
    url:`service/activity`,
    method:'post',
    data
  })
}
export const getSerActivityedl=(data)=>{
  return request({
    url:`service/activity/${data.id}`,
    method:'put',
    data
  })
}
export const getSerActivityRup=(id)=>{
  return request({
    url:`service/activity/${id}`,
    method:'get',
    
  })
}
